import { GCellRenderer } from "../../../../../com/mui/controls/GCellRenderer";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { DataEvent } from "../../../events/DataEvent";
import { EventName } from "../../../mvc/EventName";
import { ObjCreate } from "../../common/ObjCreate";
import { Language } from "../../../../../extend/language/Language";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { GTextFormat } from "../../../../common/GTextFormat";
import { HTMLUtil } from "../../../../../com/gengine/utils/HTMLUtil";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
import { LoaderHelp } from "../../../../common/display/LoaderHelp";
import { ResFileConst } from "../../../resource/ResFileConst";
import { GModuleEvent } from "../../../mvc/GModuleEvent";
import { CanDelegateItemData } from "./CanDelegateItemData";
import { EDelegateType } from "../../../../../Message/Game/EDelegateType";
import { CopyUtil } from "../../copy/CopyUtil";
import { Cache } from "../../../cache/Cache";
import { DelegateTaskModule } from "../../../../../modules/DelegateTaskModule";
import { EPrictUnit } from "../../../../../Message/Public/EPrictUnit";
import { ECopyType } from "../../../../../Message/Public/ECopyType";
import { MsgManager } from "../../../manager/MsgManager";
import { GTextFiled } from "../../../../../com/mui/controls/GTextFiled";
import { PriceLabel } from "../../../../common/label/PriceLabel";
import { GLabel } from "../../../../../com/mui/controls/GLabel";
import { PageSelecter } from "../../common/pageSelect/PageSelecter";
import { GButton } from "../../../../../com/mui/controls/GButton";
type int = number;
//class CanDelegateCellRenderer
    
    export  class CanDelegateCellRenderer extends GCellRenderer
    {
        constructor()
        {
            super();
            return;
        }

        protected onWarfareUnReachClick(arg1: Object /* flash.events.TextEvent */): void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.WalkthroughWindowOpen, 2));
            return;
        }

        protected /* override */ configUI(): void
        {
            ObjCreate.createBg(0, 0, 190, 260, this);
            this._desTip = ObjCreate.createGTextField("", 15, 30, 160, 40, this, null, false);
            this._desTip.visible = false;
            this._desTip.wordWrap = true;
            this._conditionDes = ObjCreate.createLabel(Language.getString(69707), 15, 96, 70, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color1Uint);
            this._conditionDes.drawNow();
            this._conditionDes.visible = false;
            this._conditionLabel = ObjCreate.createPriceLabel("", 95, 96, 90, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color2Uint);
            this._conditionLabel.drawNow();
            this._conditionLabel.visible = false;
            this._conditionLabel2 = ObjCreate.createPriceLabel("", 10, 235, 100, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color2Uint);
            this._conditionLabel2.drawNow();
            this._conditionLabel2.visible = false;
            this._typeLabel = ObjCreate.createLabel("", 0, 5, 190, 25, flash.text.TextFormatAlign.CENTER, this, true, 16742658);
            this._typeLabel.setStyle("textFormat", new GTextFormat("黑体", 14, 16742658, true, null, null, null, null, flash.text.TextFormatAlign.CENTER));
            this._typeLabel.drawNow();
            this._levelDes = ObjCreate.createLabel(Language.getString(69632), 15, 30, 70, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color1Uint);
            this._levelDes.drawNow();
            this._levelLabel = ObjCreate.createPriceLabel("", 95, 30, 65, 20, flash.text.TextFormatAlign.LEFT, this, true, 64773);
            this._levelUnReachLabel = ObjCreate.createGTextField("", 0, 30, 70, 20);
            this._levelUnReachLabel.htmlText = "<a href=\'event: click\'>" + HTMLUtil.addColor("[<u>" + Language.getString(69635) + "</u>]", "#FF0000") + "</a>";
            this._levelUnReachLabel.toolTipData = HTMLUtil.addColor(Language.getString(69636), "#FFFFFF");
            this._levelUnReachLabel.addEventListener(flash.events.TextEvent.LINK, this.onLevelUnReachClick);
            this._warfareDes = ObjCreate.createLabel(Language.getString(69628), 15, 52, 70, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color1Uint);
            this._warfareDes.drawNow();
            this._warfareLabel = ObjCreate.createPriceLabel("", 95, 52, 65, 20, flash.text.TextFormatAlign.LEFT, this, true, 16776960);
            this._warfareUnReachLabel = ObjCreate.createGTextField("", 0, 52, 70, 20);
            this._warfareUnReachLabel.htmlText = "<a href=\'event: click\'>" + HTMLUtil.addColor("[<u>" + Language.getString(69635) + "</u>]", "#FF0000") + "</a>";
            this._warfareUnReachLabel.toolTipData = HTMLUtil.addColor(Language.getString(69637), "#FFFFFF");
            this._warfareUnReachLabel.addEventListener(flash.events.TextEvent.LINK, this.onWarfareUnReachClick);
            this._numStepper = ObjCreate.createPageSelecter(95, 74, this);
            this._numStepper.addEventListener(flash.events.Event.CHANGE, this.onDelegateNumberChange);
            this._numLabel = ObjCreate.createLabel(Language.getString(69655), 15, this._numStepper.y, 70, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color5Uint);
            this._numLabel.drawNow();
            this._timeDes = ObjCreate.createLabel(Language.getString(69610), 15, 96, 70, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color1Uint);
            this._timeDes.drawNow();
            this._timeLabel = ObjCreate.createPriceLabel("", 95, 96, 65, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color2Uint);
            ObjCreate.createLabel(Language.getString(69607), 15, 118, 70, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color1Uint).drawNow();
            this._costLabel = ObjCreate.createPriceLabel("", 95, 118, 65, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color2Uint);
            ObjCreate.createLabel(Language.getString(69608), 15, 140, 70, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color1Uint).drawNow();
            this._expLabel = ObjCreate.createPriceLabel("", 95, 140, 90, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color2Uint);
            this._expVipLabel = ObjCreate.createPriceLabel("", 95, 162, 90, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color2Uint);
            this._expDrugLabel = ObjCreate.createPriceLabel("", 95, 184, 90, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color2Uint);
            this._expUseDrugLabel = ObjCreate.createGTextField("", 158, 184, 60, 20, this);
            this._expUseDrugLabel.htmlText = HTMLUtil.addColor("<a href=\'event:\'><u>" + Language.getString(69673) + "</u></a>", "#FFFF00");
            this._expUseDrugLabel.addEventListener(flash.events.TextEvent.LINK, this.onUseExpDrugLink);
            if (GlobalClass.hasRes(ImagesConst.DelegateTask_vipAdd)) 
            {
                this.setBitmap();
            }
            else 
            {
                LoaderHelp.addResCallBack(ResFileConst.delegateTask, this.setBitmap);
            }
            ObjCreate.createLabel(Language.getString(69659), 15, 206, 80, 20, flash.text.TextFormatAlign.LEFT, this, true, GlobalStyle.color1Uint).drawNow();
            this._expAddLabel = ObjCreate.createPriceLabel("", 95, 206, 90, 20, flash.text.TextFormatAlign.LEFT, this, true, 16776960);
            this._expAddLabel.toolTipData = HTMLUtil.addColor(Language.getString(69647), "#FFFFFF");
            this._optBtn = ObjCreate.createGButton(Language.getString(69634), 58, 230, 75, 24, this, "ButtonSpecial");
            this._optBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onOptBtnClick);
            this._nextLabelBtn = ObjCreate.createGTextField("", this._optBtn.x + 78, this._optBtn.y + 7, 50, 20, this);
            this._nextLabelBtn.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._nextLabelBtn.htmlText = "<a href=\'event:\'><u>" + HTMLUtil.addColor(Language.getString(69649), "#FFFF00") + "</u></a>";
            this._nextLabelBtn.addEventListener(flash.events.TextEvent.LINK, this.onNextLabelBtnClick);
            this._levelLabel.drawNow();
            this._warfareLabel.drawNow();
            this._expLabel.drawNow();
            this._expAddLabel.drawNow();
            this._timeLabel.drawNow();
            this._costLabel.drawNow();
            this._optBtn.drawNow();
            this._unitBm = new Object /* flash.display.Bitmap */();
            this._unitBm.y = this._costLabel.y + 3;
            this.addChild(this._unitBm);
            return;
        }

        protected setBitmap(): void
        {
            this._expVipBitmap = ObjCreate.createBitmap(ImagesConst.DelegateTask_vipAdd, 10, 165, this);
            this._expDrugBitmap = ObjCreate.createBitmap(ImagesConst.DelegateTask_expDrugAdd, 2, 187, this);
            return;
        }

        protected onUseExpDrugLink(arg1): void
        {
            this.dispatchEvent(new DataEvent(GModuleEvent.DelegateTaskShowExpDrugWindow, null, false, true, true));
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            var loc1=null;
            var loc2=0;
            super.data = arg1;
            if (data) 
            {
                loc1 = data as CanDelegateItemData;
                this._isFree = false;
                if (loc1.data) 
                {
                    if (loc1.data.tdelegate.type != EDelegateType._EDelegateTypeCopy) 
                    {
                        if (loc1.data.tdelegate.type != EDelegateType._EDelegateTypeTask) 
                        {
                        };
                    }
                    else 
                    {
                        if (!loc1.copy) 
                        {
                            return;
                        }
                        this._isFree = CopyUtil.isCanFreeDelegate(loc1.copy);
                        loc2 = CopyUtil.getCopyNumByDay(loc1.copy) - Cache.instance.copy.getHasEnterNumById(loc1.copy.code);
                        this._numStepper.maxPage = loc2 < 1 ? 1 : loc2;
                        if (!DelegateTaskModule.changeNumMap || !DelegateTaskModule.changeNumMap[loc1.data.tdelegate.code]) 
                        {
                            this._numStepper.currentPage = loc1.count;
                        }
                        this._expVip = Cache.instance.delegateTask.getExpAddVIP();
                        this._expDrug = Cache.instance.delegateTask.getExpAddDrug();
                        this._condition = loc1.data.tdelegate.passTimes;
                        if (loc1.moneyType != EPrictUnit._EPriceUnitCoin) 
                        {
                            this._levelLabel.htmlText = HTMLUtil.addColor(Language.getStringByParam(69640, loc1.delegateLevel), GlobalStyle.color1);
                            this._typeLabel.htmlText = HTMLUtil.addColor(Language.getString(69614), "#FF7902");
                            this._warfareLabel.htmlText = HTMLUtil.addColor("" + loc1.data.tdelegate.warfareGold, "#FFFF00");
                            this._time = loc1.data.tdelegate.timeGold;
                            this._cost = loc1.data.tdelegate.gold;
                            this._expBase = loc1.data.tdelegate.expirenceGold;
                            this._unitBm.bitmapData = GlobalClass.getBitmapData(ImagesConst.Yuanbao_small);
                            this._desTip.htmlText = Language.getString(69706);
                        }
                        else 
                        {
                            this._levelLabel.htmlText = HTMLUtil.addColor(Language.getStringByParam(69640, loc1.delegateLevel), GlobalStyle.color1);
                            this._typeLabel.htmlText = HTMLUtil.addColor(Language.getString(69613), "#FF7902");
                            this._warfareLabel.htmlText = HTMLUtil.addColor("" + loc1.data.tdelegate.warfareCoin, "#FFFF00");
                            this._time = loc1.data.tdelegate.timeCoin;
                            this._cost = loc1.data.tdelegate.coin;
                            this._expBase = loc1.data.tdelegate.expirenceCoin;
                            this._unitBm.bitmapData = GlobalClass.getBitmapData(ImagesConst.Tongqian_small);
                            this._desTip.htmlText = Language.getString(69705);
                        }
                    }
                }
            }
            this.updateLabels();
            this.updateStatus();
            return;
        }

        protected onOptBtnClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=null;
            if (data) 
            {
                loc1 = data as CanDelegateItemData;
                if (loc1.copy && loc1.copy.copyType == ECopyType._ECopyCoin && !loc1.isReachFightCap()) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(69668));
                    return;
                }
                if (this._optBtn.label != Language.getString(69661)) 
                {
                    if (loc1.moneyType != EPrictUnit._EPriceUnitCoin) 
                    {
                        this.dispatchEvent(new DataEvent(GModuleEvent.StartDelegateTaskGold, {"data": loc1.data.tdelegate, "count": this._numStepper.currentPage}, false, true, true));
                    }
                    else 
                    {
                        this.dispatchEvent(new DataEvent(GModuleEvent.StartDelegateTaskCoin, {"data": loc1.data.tdelegate, "count": this._numStepper.currentPage}, false, true, true));
                    }
                }
                else 
                {
                    this.dispatchEvent(new DataEvent(GModuleEvent.StartDelegateTaskFree, {"data": loc1.data.tdelegate, "count": this._numStepper.currentPage}, false, true, true));
                }
            }
            return;
        }

        protected onNextLabelBtnClick(arg1: Object /* flash.events.TextEvent */): void
        {
            this.dispatchEvent(new DataEvent(GModuleEvent.ShowNextDelegateTask, null, false, true, true));
            return;
        }

        protected onLevelUnReachClick(arg1: Object /* flash.events.TextEvent */): void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.WalkthroughWindowOpen, 1));
            return;
        }

        protected updateLabels(): void
        {
            this._timeLabel.htmlText = HTMLUtil.addColor(Language.getStringByParam(69619, this._time * this._numStepper.currentPage), GlobalStyle.color2);
            this._costLabel.htmlText = HTMLUtil.addColor("" + this._cost * this._numStepper.currentPage, "#FFFF00");
            this._expLabel.htmlText = HTMLUtil.addColor("" + this._expBase * this._numStepper.currentPage, "#00FF00");
            this._expVipLabel.htmlText = HTMLUtil.addColor(Math.round(this._expBase * this._numStepper.currentPage * this._expVip / 100) + " [" + this._expVip + "%]", "#00BEFF");
            this._expDrugLabel.htmlText = HTMLUtil.addColor(Math.round(this._expBase * this._numStepper.currentPage * this._expDrug / 100) + " [" + this._expDrug + "%]", "#FF00FF");
            this._expAddLabel.htmlText = HTMLUtil.addColor(Math.round((this._expBase + this._expBase * (this._expVip + this._expDrug) / 100) * this._numStepper.currentPage) + "", "#FF7902");
            this._unitBm.x = this._costLabel.x + this._costLabel.textField.textWidth + 5;
            this._conditionLabel.htmlText = HTMLUtil.addColor(Language.getStringByParam(69708, this._condition), GlobalStyle.color2);
            var loc1=Cache.instance.copy.getDelegateCopyPassTimes(this.info.data.code);
            var loc2=loc1 >= this._condition ? "#F1FFB1" : "#FF0000";
            this._conditionLabel2.htmlText = HTMLUtil.addColor(Language.getStringByParam(69713, loc1, this._condition), loc2);
            if (this._isFree) 
            {
                if (this.info.data.isDefenceCopy()) 
                {
                    this._timeLabel.clearRedLine();
                    this._costLabel.clearRedLine();
                }
                else 
                {
                    this._timeLabel.drawRedLine();
                    this._costLabel.drawRedLine();
                }
                if ((data as CanDelegateItemData).copy && (data as CanDelegateItemData).copy.copyType == ECopyType._ECopyCoin) 
                {
                    this._warfareLabel.clearRedLine();
                }
                else 
                {
                    this._warfareLabel.drawRedLine();
                }
                this._expLabel.clearRedLine();
                this._expVipLabel.clearRedLine();
                this._expDrugLabel.clearRedLine();
                this._expAddLabel.clearRedLine();
                this._levelLabel.clearRedLine();
                this._conditionLabel.clearRedLine();
                this._conditionLabel2.clearRedLine();
                this._numLabel.htmlText = Language.getString(69662);
            }
            else 
            {
                if (this.info.data.isCrossDefenceCopy() && this.info.moneyType == EPrictUnit._EPriceUnitCoin) 
                {
                    this._timeLabel.drawRedLine();
                    this._costLabel.drawRedLine();
                    this._warfareLabel.drawRedLine();
                    this._expLabel.drawRedLine();
                    this._expVipLabel.drawRedLine();
                    this._expDrugLabel.drawRedLine();
                    this._expAddLabel.drawRedLine();
                    this._levelLabel.drawRedLine();
                    this._conditionLabel.drawRedLine();
                    this._conditionLabel2.drawRedLine();
                }
                else 
                {
                    this._timeLabel.clearRedLine();
                    this._costLabel.clearRedLine();
                    this._warfareLabel.clearRedLine();
                    this._expLabel.clearRedLine();
                    this._expVipLabel.clearRedLine();
                    this._expDrugLabel.clearRedLine();
                    this._expAddLabel.clearRedLine();
                    this._levelLabel.clearRedLine();
                    this._conditionLabel.clearRedLine();
                    this._conditionLabel2.clearRedLine();
                }
                this._numLabel.htmlText = Language.getString(69655);
            }
            return;
        }

        protected updateStatus(): void
        {
            var loc2=false;
            var loc3=false;
            var loc4=false;
            var loc1=data as CanDelegateItemData;
            if (loc1 && loc1.data.tdelegate.type == EDelegateType._EDelegateTypeCopy) 
            {
                loc2 = loc1.isReachLevel();
                loc3 = loc1.isReachFightCap();
                loc4 = loc1.copyNumOver;
                if (loc3) 
                {
                    if (this._warfareUnReachLabel.parent) 
                    {
                        this._warfareUnReachLabel.parent.removeChild(this._warfareUnReachLabel);
                    }
                }
                else 
                {
                    if (!this._warfareUnReachLabel.parent) 
                    {
                        this.addChild(this._warfareUnReachLabel);
                    }
                    this._warfareUnReachLabel.x = this._warfareLabel.x + this._warfareLabel.textField.textWidth + 5;
                }
                if (loc2) 
                {
                    if (this._levelUnReachLabel.parent) 
                    {
                        this._levelUnReachLabel.parent.removeChild(this._levelUnReachLabel);
                    }
                }
                else 
                {
                    if (!this._levelUnReachLabel.parent) 
                    {
                        this.addChild(this._levelUnReachLabel);
                    }
                    this._levelUnReachLabel.x = this._levelLabel.x + this._levelLabel.textField.textWidth + 5;
                }
                if (loc1.copy && loc1.copy.copyType == ECopyType._ECopyCoin) 
                {
                    if (this._isFree && loc3 && loc1.moneyType == EPrictUnit._EPriceUnitGold && !loc4 && !loc1.isDelegating) 
                    {
                        this._optBtn.enabled = true;
                    }
                    else 
                    {
                        this._optBtn.enabled = false;
                    }
                }
                else if (loc1.data.isDefenceCopy()) 
                {
                    if (loc2 && this._condition <= Cache.instance.copy.getDelegateCopyPassTimes(loc1.data.code) && !loc4 && !loc1.isDelegating) 
                    {
                        this._optBtn.enabled = true;
                    }
                    else 
                    {
                        this._optBtn.enabled = false;
                    }
                }
                else if (loc1.data.isCrossDefenceCopy()) 
                {
                    if (loc1.moneyType != EPrictUnit._EPriceUnitCoin) 
                    {
                        if (loc2 && this._condition <= Cache.instance.copy.getDelegateCopyPassTimes(loc1.data.code) && !loc4 && !loc1.isDelegating) 
                        {
                            this._optBtn.enabled = true;
                        }
                        else 
                        {
                            this._optBtn.enabled = false;
                        }
                    }
                    else 
                    {
                        this._optBtn.enabled = false;
                    }
                }
                else if (!loc2 || !loc3 && !this._isFree || loc4 || loc1.isDelegating || loc1.moneyType == EPrictUnit._EPriceUnitCoin && this._isFree) 
                {
                    this._optBtn.enabled = false;
                }
                else 
                {
                    this._optBtn.enabled = true;
                }
                if (loc1.isDelegating) 
                {
                    this._expAddLabel.htmlText = loc1.myDelegate.isActive + "%";
                    this._optBtn.label = Language.getString(69638);
                }
                else if (loc4) 
                {
                    this._optBtn.label = Language.getString(69639);
                }
                else if (loc1.data.isDefenceCopy() || loc1.data.isCrossDefenceCopy()) 
                {
                    this._optBtn.label = Language.getString(69709);
                }
                else if (this._isFree || loc1.copy && loc1.copy.copyType == ECopyType._ECopyCoin) 
                {
                    this._optBtn.label = Language.getString(69661);
                }
                else 
                {
                    this._optBtn.label = Language.getString(69634);
                }
                if (this._isFree) 
                {
                    this._optBtn.toolTipData = HTMLUtil.addColor(Language.getString(69664), "#FFFFFF");
                }
                else 
                {
                    this._optBtn.toolTipData = "";
                }
                this._optBtn.drawNow();
            }
            if (loc1 && (loc1.data.isDefenceCopy() || loc1.data.isCrossDefenceCopy())) 
            {
                this._levelDes.y = 74;
                this._levelLabel.y = 74;
                this._levelUnReachLabel.y = 74;
                this._warfareDes.visible = false;
                this._warfareLabel.visible = false;
                this._warfareUnReachLabel.visible = false;
                this._numLabel.visible = false;
                this._numStepper.visible = false;
                this._timeDes.visible = false;
                this._timeLabel.visible = false;
                this._desTip.visible = true;
                this._conditionDes.visible = true;
                this._conditionLabel.visible = true;
                this._conditionLabel2.visible = true;
                this._nextLabelBtn.visible = false;
                this._optBtn.x = 100;
            }
            else 
            {
                this._levelDes.y = 30;
                this._levelLabel.y = 30;
                this._levelUnReachLabel.y = 30;
                this._warfareDes.visible = true;
                this._warfareLabel.visible = true;
                this._warfareUnReachLabel.visible = true;
                this._numLabel.visible = true;
                this._numStepper.visible = true;
                this._timeDes.visible = true;
                this._timeLabel.visible = true;
                this._desTip.visible = false;
                this._conditionDes.visible = false;
                this._conditionLabel.visible = false;
                this._conditionLabel2.visible = false;
                this._nextLabelBtn.visible = true;
                this._optBtn.x = 58;
            }
            return;
        }

        protected onDelegateNumberChange(arg1: Object /* flash.events.Event */=null): void
        {
            (_data as CanDelegateItemData).count = this._numStepper.currentPage;
            this.updateLabels();
            var loc1=data as CanDelegateItemData;
            if (loc1 && loc1.data) 
            {
                if (!DelegateTaskModule.changeNumMap) 
                {
                    DelegateTaskModule.changeNumMap = new Map<any, any> /* flash.utils.Dictionary */(true);
                }
                DelegateTaskModule.changeNumMap[loc1.data.tdelegate.code] = true;
            }
            return;
        }

        protected get info(): CanDelegateItemData
        {
            return data as CanDelegateItemData;
        }

        protected /* var */_warfareUnReachLabel: GTextFiled;

        protected /* var */_conditionLabel: PriceLabel;

        protected /* var */_conditionLabel2: PriceLabel;

        protected /* var */_expVipBitmap: Object /* flash.display.Bitmap */;

        protected /* var */_expDrugBitmap: Object /* flash.display.Bitmap */;

        protected /* var */_numLabel: GLabel;

        protected /* var */_numStepper: PageSelecter;

        protected /* var */_isFree: Boolean;

        protected /* var */_optBtn: GButton;

        protected /* var */_nextLabelBtn: GTextFiled;

        protected /* var */_expVipLabel: PriceLabel;

        protected /* var */_cost: int;

        protected /* var */_expBase: int;

        protected /* var */_expVip: int;

        protected /* var */_expDrug: int;

        protected /* var */_condition: int;

        protected /* var */_desTip: GTextFiled;

        protected /* var */_levelDes: GLabel;

        protected /* var */_warfareDes: GLabel;

        protected /* var */_timeDes: GLabel;

        protected /* var */_conditionDes: GLabel;

        protected /* var */_typeLabel: GLabel;

        protected /* var */_costLabel: PriceLabel;

        protected /* var */_unitBm: Object /* flash.display.Bitmap */;

        protected /* var */_expLabel: PriceLabel;

        protected /* var */_expDrugLabel: PriceLabel;

        protected /* var */_expUseDrugLabel: GTextFiled;

        protected /* var */_time: int;

        protected /* var */_expAddLabel: PriceLabel;

        protected /* var */_timeLabel: PriceLabel;

        protected /* var */_levelLabel: PriceLabel;

        protected /* var */_levelUnReachLabel: GTextFiled;

        protected /* var */_warfareLabel: PriceLabel;
    }
